
	//显示核算项目
	function showCalculationProject()
		{
			var a=document.getElementById("subject_set");
			var b=document.getElementById("calculation_project");
				a.style.display="none";
				b.style.display="block";
		}
		//显示科目设置
		function showSubject()
		{
			var a=document.getElementById("subject_set");
			var b=document.getElementById("calculation_project");
				b.style.display="none";
				a.style.display="block";
		}
		/*function showAccountbook()
		{        
			window.open("accountbook!addInput.action","newwindow", "toolbar= no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no,width=550,height=550"); 
			
		}
		// 打开会计科目新增核算项目小窗口
		function showCalculation()
		{        
			window.open("../baseset/accountbook_calculation.html","public","resizable=no,help=no,status=no,scroll=no,height=330px,width=338px"); 
		} 
		// 打开新增币别小窗口
		function showNewMoneyKind()
		{        
			window.open("currency!addInput.action","public","resizable=yes,help=no,status=no,scroll=no,height=276px,width=406px");
		} 
		// 打开新增销售价格资料小窗口
		
		function showSalePrice()
		{        
			window.open("salePrice!addInput.action","public","resizable=no,help=no,status=no,scroll=no,height=760px,width=1090px");
		}
		// 打开新增单据小窗口
		function showBill()
		{        
			window.open("../baseset/billInput.html","public","resizable=no,help=no,status=no,scroll=no,height=268px,width=390px"); 
		}
		// 打开新增核算项目--客户小窗口
		function showCustomer()
		{        
			window.open("customer!addInput.action","newwindow", "toolbar= no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no,width=550,height=550"); 
			
		}
		// 打开新增用户小窗口
		function showUser()
		{        
			window.open("../baseset/userinput.html","public","resizable=no,help=no,status=no,scroll=no,height=236px,width=302px"); 
			
		} 
		// 打开新增用户组小窗口
		function showUserGroup()
		{        
			window.open("../baseset/userGroupinput.html","public","resizable=no,help=no,status=no,scroll=no,height=176px,width=302px");
			
		} 
		// 打开新增核算项目--部门小窗口
		function showDepartment()
		{        
			window.showModalDialog("department!addInput.action","public","resizable=no;help=no;status=no;scroll=no;dialogHeight=450px;dialogWidth=450px;"); 
			
		} 
		// 打开新增计量单位小窗口
		function showMeasure()
		{        
			window.open("measureUnit!addInput.action","public","resizable=no,help=no,status=no,scroll=no,height=270px,width=322px");
			
		} 
		// 打开新增计量单位组小窗口
		function showMeasureGroup()
		{        
			window.open("unitGroup!addInput.action","public","resizable=no,help=no,status=no,scroll=no,height=270px,width=322px"); 
			
		} 
		// 打开新增核算项目--物料小窗口
		function showMaterial()
		{        
			window.open("material!addInput.action","newwindow", "toolbar= no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no,width=650,height=500"); 
			
		}
		// 打开新增结算方式小窗口
		function showSettleMent()
		{        
			window.open("settleType!addInput.action","public","resizable=no,help=no,status=no,scroll=no,height=208px,width=302px");
			
		} 
		// 打开新增核算项目--职工小窗口
		function showStaff()
		{        
			window.open("staff!addInput.action","newwindow", " toolbar= no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no,width=600,height=500 "); 
			
		} 
		// 打开新增核算项目--仓库小窗口
		// 打开新增核算项目--仓库小窗口
		function showStore()
		{        
			window.open("store!addInput.action","newwindow", "toolbar= no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no,width=350,height=350"); 
			
		} 
		// 打开新增凭证字小窗口
		function showVoucherWord()
		{        
			window.open("voucher!addInput.action","public","resizable=no;help=no,status=no,scroll=no,height=366px,width=324px"); 
			
		} 
		// 打开新增核算项目--供应商小窗口
		function showAfford()
		{        
			window.open("supplier!addInput.action","public","resizable=no,help=no,status=no,scroll=no,height=474px,width=548px"); 
			
		} 
		// 打开新增BOM清单小窗口
		function showBOM()
		{        
			window.open("bom!addInput.action","public","resizable=no;help=no,status=no,scroll=no,height=822px,width=1122px"); 
			
		} 
		// 打开新增收支类别小窗口
		function showGetPayType()
		{        
			window.open("payType!addInput.action","public","resizable=no;help=no,status=no,scroll=no,height=300px,width=390px"); 
			
		} 
		// 打开新增物料属性小窗口
		function showPropertyMaterial()
		{        
			window.open("materail!addInput.action","public","resizable=no,help=no,status=no,scroll=no,height=150px,width=250px"); 
			
		} 
		// 打开新增采购价格小窗口
		function showStockPrice()
		{        
			window.open("stockPrice!addInput.action","public","resizable=no,help=no,status=no,scroll=no,height=268px,width=472px"); 
			
		} 
		*/
		function showAddUser(){
			location.href("showAddUser.action");
		}

		
		function showAddUserGroup(){
		location.href("showAddUserGroup.action");
		}
		
		
		function showAddIncomeExpense(){
			location.href("showAddIncomeExpense.action");
		}
		
		function showAddBOMGroup(){
			location.href("showAddBOMGroup.action");
		}
		
		function showAddCash(){
		 	location.href("showAddCash.action");
		}
	

/*
			 * 打开新窗口（汤云伟）
			 * link:链接地址
			 * name:窗口的名称
			 * width:窗口的宽度
			 * height:窗口的高度
			 * scroll:窗口是否有滚动条，1：有滚动条；0：没有滚动条
			 * id:约束参数
			 */
			function openWinT(link,name,width,height,scroll){
				var id = document.getElementById("groupId");
				if(id.value == ''){
					alert("计量单位组不能为空");
					return false ;
				}
			
				var truelink = link+'?measureGroupId='+id.value;
				var sb = scroll == "1" ? "1" : "0";
				var l = (screen.width - width)/2;
				var t = (screen.height - height)/2;
				var sFeatures = "left="+ l +",top="+ t +",height="+ height +",width="+ width + ",center=1,scrollbars=" + sb + ",status=0,directories=0,channelmode=0";
				var openwin = window.open(truelink , name , sFeatures );
				if (!openwin.opener)
				{
					openwin.opener = self;
				}
				openwin.focus();
			}
			
			function multiSelectT(hiddenName,hiddenId,link,name,width,height,scroll){
				var id = document.getElementById("groupId");
				if(id.value == ''){
					alert("计量单位组不能为空");
					return false ;
				}
				var truelink = link+'?measureGroupId='+id.value;
			   	//得到隐藏在jsp页面上的会计科目name
			    var accountbookName = document.getElementById('measureUnitName');
			    
			    //如果参数hiddenId的值不为''是（jsp面上需要id属性）
			    if(hiddenId!=''){
					var accountbookId = document.getElementById('measureUnitId');
					accountbookId.value=hiddenId;
					accountbookName.value=hiddenName;
				}
				else//jsp页面上不需要id属性
					accountbookName.value=hiddenName;
					
				//打开多选会计科目的select页面
				openWin(truelink,name,width,height,scroll);
			}
		
		
		